<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
 body{
  background: url("<%=request.getContextPath()%>/view/images/5.jpg") repeat-x;
  left:200px;
  right:200px;
  top:300px;
  bottom:300px;
  margin:auto;
  }
 .two ul li{
  display:inline-block;
  
 }
  
</style>
<script type="text/javascript">
function check(){
	if(form2.num.value>3){
		alert("总页数为3");
		form2.num.focus();
		return false;
	}
	return true;
	
	
}

 
 
 
</script>
</head>
<body>
<div class="one">
 <table  border='1'>
 <tr>
  <th>用户id</th>
  <th>用户名</th>
  <th>级别</th>
  <th>修改用户</th>
  <th>删除用户</th>
 </tr>
 <c:forEach var="user" items="${requestScope.userlist}">
  <tr>
   <td>${user.userid }</td>
   <td>${user.username }</td>
   <td>${user.usertype }</td>
   <td><a href="#">修改用户</a></td>
   <td><a href='#'>删除用户</a></td>
  </tr>
 </c:forEach>
</table>
</div>
<div class="two">
 <ul>
  <li><a href="<%=request.getContextPath() %>/page?curpage=first">首页</a></li>
  <li><a href="<%=request.getContextPath() %>/page?curpage=previous">上一页</a></li>
  <li><a href="<%=request.getContextPath() %>/page?curpage=next">下一页</a></li>
  <li><a href="<%=request.getContextPath() %>/page?curpage=last">末页</a></li>
  <li><span>当前页/</span>${requestScope.pageNow}<span>总页数</span>${requestScope.pageCount}</li>
 </ul>
</div>
 <form action="<%=request.getContextPath() %>/page" method='post' onsubmit="return check()" name="form2">
 跳转到：<input type="text" name='num'>
<input type="submit" value="go">
</form>
<input type="submit" onclick="document.location.href='<%=request.getContextPath()%>/view/user/manage.jsp'" value="返回上一级">
</body>
</html>